# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xmlto
pkgver=0.0.28
pkgrel=4
pkgdesc="Convert xml to many other formats"
url="https://pagure.io/xmlto/"
arch="all"
license="GPL-2.0-or-later"
depends="libxslt perl-yaml-syck perl-test-pod bash docbook-xsl"
subpackages="$pkgname-doc"
source="https://releases.pagure.org/xmlto/xmlto-$pkgver.tar.bz2"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--mandir=/usr/share/man
	make -j1
}

check() {
	make check
}

package() {
	make -j1 DESTDIR="$pkgdir" install
}

sha512sums="6e0c4968d4f1b7a3b132904182aa72a73f6167553eabdeb65cfafa6295ef7b960541685769d04144207963cca77b0c44db4f9fbb2796348ffcb37b3b399f18f1  xmlto-0.0.28.tar.bz2"
